package com.heima.wemedia.thread;

import com.heima.model.wemedia.pojos.WmUser;

public class UserThreadLoacl {

    private static ThreadLocal<WmUser> threadLocal = new ThreadLocal<>();

    public static void set(WmUser wmUser){
        threadLocal.set(wmUser);
    }

    public static WmUser get(){
        return threadLocal.get();
    }

    public static void remove(){
        threadLocal.remove();
    }



}
